package com.inspinia.base.web.config;

import com.inspinia.base.dao.config.DataSourceConfig;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@ComponentScan(basePackages = {
        "com.inspinia.**.aop",
        "com.inspinia.**.config",
        "com.inspinia.**.properties",
        "com.inspinia.**.service",
        "com.inspinia.**.filter",
        "com.inspinia.**.util"},
        excludeFilters = {
        @ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class),
        @ComponentScan.Filter(type = FilterType.ANNOTATION, value = ControllerAdvice.class),
        @ComponentScan.Filter(type = FilterType.ANNOTATION, value = EnableWebMvc.class)})
@EnableAspectJAutoProxy(proxyTargetClass = true)
@Import(DataSourceConfig.class)
@ImportResource(locations = {"classpath:spring/spring-*.xml"})
public class AppConfig {
}
